package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 食材表
 *
 * @author luzhiheng
 * @since 2024-12-28 16:14:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ingredient")
@Entity
@Table(name = "ingredient", indexes = {})
public class Ingredient extends BaseEntity {

    /**
     * 食材名称
     */
    @Column(name = "name", columnDefinition = "varchar(255) COMMENT '食材名称'")
    private String name;

    /**
     * 类别ID
     */
    @Column(name = "category_id", columnDefinition = "bigint(20) COMMENT '类别ID'")
    private Long categoryId;

    /**
     * 单位
     */
    @Column(name = "unit", columnDefinition = "varchar(255) COMMENT '单位'")
    private String unit;

    /**
     * 图片
     */
    @Column(name = "img", columnDefinition = "varchar(1024) COMMENT '图片'")
    private String img;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;

}
